import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/search`,
}

export const detailsApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/searchDetail`,
}

export const detailsApiUrlConfigBydelete = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/searchDetail`,
}

// 明细查询
export function save(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/save`,
    method: 'post',
    data
  })
}

// 明细查询
export function update(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/update`,
    method: 'post',
    data
  })
}

// 明细查询
export function del(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/delete`,
    method: 'post',
    params:{feeCode:data.feeCode}
  })
}


// 明细详情
export function detail(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/feeManage/StandardFeeManage/detail`,
      method: 'get',
      params
  })
}
